package com.zp.pattern.command;
/**
 * 具体命令角色：定义一个接收者和行为之间的弱耦合，
 * 			   实现execute方法，负责调用接收者的相应操作;
 */
public class ConcreteCommand implements Command
{
	private Receiver receiver;
	
	public ConcreteCommand(Receiver receiver)
	{
		this.receiver = receiver;
	}
	
	@Override
	public void execute()
	{
		receiver.doAction();
	}
}
